﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="edit">
    <tr>
        <td class="label">
            Check vào nếu 
        </td>
        <td class="input">
            <% Response.Write(Html.CheckBox("IsContacted",(bool)((TSV.Models.BusinessRegister)ViewData.Model).IsContacted));
            Response.Write("<label for=\"IsContacted\">Đã liên hệ với doanh nghiệp này</label>&nbsp;");
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
          Tên doanh nghiệp <span>*</span>
        </td>
        <td class="input">
            <% 
                Response.Write(Html.TextBox("BusinessName", ((TSV.Models.BusinessRegister)ViewData.Model).BusinessName, new { @maxlength = "100", @style = "width:300px" }));
                Response.Write(Html.Hidden("ID", ((TSV.Models.BusinessRegister)ViewData.Model).ID));
            %>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Người đại diện<span>*</span>
        </td>
        <td class="input">
            <%
                   Response.Write(Html.TextBox("Representative", ((TSV.Models.BusinessRegister)ViewData.Model).Representative, new { @maxlength = "100", @style = "width:300px" }));%>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Loại hình dịch vụ<span>*</span>
        </td>
        <td class="input">
            <%Response.Write(Html.TextBox("Service", ((TSV.Models.BusinessRegister)ViewData.Model).Service, new { @maxlength = "100", @style = "width:300px" }));%>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Địa Chỉ<span>*</span>
        </td>
        <td class="input">
            <%Response.Write(Html.TextArea("Address", ((TSV.Models.BusinessRegister)ViewData.Model).Address, new { @style = "width:300px", @maxlength = "200" }));%>               
        </td>
    </tr>
    
    <tr>
        <td class="label required">
            Điện Thoại<span>*</span>
        </td>
        <td class="input">
            <%Response.Write(Html.TextBox("Phone", ((TSV.Models.BusinessRegister)ViewData.Model).Phone, new { @style = "width:300px", @maxlength = "20" }));%>
        </td>
    </tr>
    <tr>
        <td class="label required">
            Email<span>*</span>
        </td>
        <td class="input">
            <%Response.Write(Html.TextBox("Email", ((TSV.Models.BusinessRegister)ViewData.Model).Email, new { @style = "width:300px" , @maxlength = "200"}));%>
        </td>
    </tr>
    <tr>
        <td class="label">
            Website 
        </td>
        <td class="input">
            <%Response.Write(Html.TextBox("Website", ((TSV.Models.BusinessRegister)ViewData.Model).Website, new { @style = "width:300px", @maxlength = "200" }));%>
        </td>
    </tr>
    <tr>
        <td class="label">
            Ghi chú
        </td>
        <td class="input">
            <%Response.Write(Html.TextArea("Description", ((TSV.Models.BusinessRegister)ViewData.Model).Description, new { @style = "width:300px",@rows="6", @maxlength = "2000" }));%>
        </td>
    </tr>
   
    <tr>
        <td>
        </td>
        <td>
            <input type="submit" class="save" value="" alt="" id="save"/>
            <input type="button" class="cancel" value="" alt="" onclick="JS_LIB.closePopup()" />
        </td>
    </tr>
</table>